package tech.aistar.day06.exercise2;

public class Sub extends Super {
	//非静态属性什么时候进行赋值
	//1. 保证父类构造执行完毕
	//2. 赋值操作
	int j = 30;

	public Sub() {
		//super();
		System.out.println("==3==");
		print();
		j = 40;
	}

	public void print() {
		System.out.println("==2=④==");

		//① - 子类的非静态属性还没有进行赋值操作.
		System.out.println(j);
	}

	public static void main(String[] args) {
		System.out.println(new Sub().j);
	}
}
